package com.justech.eat.global.model;

import java.util.List;

/**
 * @program: eat-service
 * @description: 表单验证返回实体模型
 * @author: feifei.li
 * @create: 2020-05-29 15:18
 **/
public class FormValidationResult extends Result {

    private List<ValidationError> validationErrors;

    public FormValidationResult(List<ValidationError> validationErrors) {
        super(400, "请求参数错误", true);
        this.validationErrors = validationErrors;
    }

    public List<ValidationError> getValidationErrors() {
        return validationErrors;
    }

    public void setValidationErrors(List<ValidationError> validationErrors) {
        this.validationErrors = validationErrors;
    }
}
